<%@ include file="/common/taglibs.jsp"%>
<%@ taglib prefix="probiz" tagdir="/WEB-INF/tags/probiz"%>
<%@ taglib prefix="product" tagdir="/WEB-INF/tags/product"%>
<%@ taglib prefix="catalog" tagdir="/WEB-INF/tags/catalog"%>
<%@ taglib prefix="content" tagdir="/WEB-INF/tags/content"%>
<html>
	<title>${category.categoryName}-${recommendedType.recommendTitle}</title>
	<meta name="keywords" content="${(not empty category.keywords)?category.keywords:category.categoryName}" />
	<meta name="description" content="${(not empty category.metaDescription)?category.metaDescription:category.categoryDescription}" />
	<body>
		<%---------------------------------start:当前位置 -------------------------%>
		<div class="position"><fmt:message key="position.your"/>
			<catalog:productCategoryNavigation categoryId="${category.categoryId}" isNeedLastCategoryUrl="true"/>&gt;${recommendedType.recommendTitle}
		</div>
		<%---------------------------------end:  当前位置 -------------------------%>
		<br/>
		<c:choose>
			<c:when test="${fn:length(productList) != 0}">		
				
				<form method="get">
					<div class="page_top clearfix">
						<%---------------------------------start:浏览方式 -------------------------%>
						<%@include file="include/productListShowStyle.jspf" %>
						<%---------------------------------end: 浏览方式 -------------------------%>
					</div>
					<%---------------------------------start:商品列表 -------------------------%>
					
					<%---------------------------------start:设置new hot 小图标样式 -------------------------%>
					<c:if test="${recommendedType.typeName=='hot_sell'}">
						<c:set var="smallIconClass" value="hot"/>
					</c:if>
					<c:if test="${recommendedType.typeName=='new_arrival'}">
						<c:set var="smallIconClass" value="new"/>
					</c:if>
					<%---------------------------------end:  设置new hot 小图标样式 -------------------------%>
					<div class="shop_window">
						<div class="content clearfix">
							<ul id="listShowStyleBody" class="${(listShowStyle==2)?'row':'grid'}">
								<c:forEach items="${productList}" var="product">
									<%@ include file="include/productItem.jspf"%>
								</c:forEach>
							</ul>
						</div>
					</div>	
					<input type="hidden" name="sourceKind" value="${param.sourceKind}"/>
					<input type="hidden" name="sourceIds" value="${param.sourceIds}"/>
					<%---------------------------------end:  商品列表 -------------------------%>
				</form>
			</c:when>
			<c:otherwise>
				<div class="msg">
					<h3><fmt:message key="recommendedProductList.noShelveProduct.msg.title"/></h3>
					<div class="recommend_info">
						<dl>
							<dt><fmt:message key="recommendedProductList.noShelveProduct.msg.advice"/>：</dt>
							<dd><fmt:message key="recommendedProductList.noShelveProduct.msg.advice1"/></dd>
							<dd><fmt:message key="recommendedProductList.noShelveProduct.msg.advice2"/></dd>
						</dl>
					</div>
				</div>
			</c:otherwise>
		</c:choose>		
		
		<c:set var="probizJs_productList" value="true" scope="request"/>
	</body>
</html>
